<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>资源未授权</title>
#include("../_common/head.html")
<link href="#CTX()/pear/admin/css/other/error.css?_v=#VERSION()" rel="stylesheet" />
</head>
<body class="layui-bg-gray">
	<div class="content">
		<img src="#CTX()/images/admin/timeout.png?_v=#VERSION()" style="width: 30%; height: 30%;">
		<div class="content-r">
			<h1>401</h1>
			<p>被访问的资源未获得授权：</p>
			<p>用户未登录或登录已经过期，系统将在 <label id="second" style="color: red; font-size: 24px;">20</label> 秒后跳转到
			    <a href="javascript:goLogin();">
			         <button class="pear-btn pear-btn-sm pear-btn-primary">登录</button>
			    </a> 页面
			</p>
		</div>
	</div>
#include("../_common/foot.html")
	<script type="text/javascript">
		var sec = document.getElementById("second");
		var i = 20;
		var timer = setInterval(function() {
			i--;
			sec.innerHTML = i;
			if (i == 0) {
				goLogin();
			}
		}, 1000);

		function goLogin() {
			window.top.location.href = "#CTX()/admin/login";
		}
	</script>
</body>
</html>
